<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

  <style>
    h1 {
      text-align: center;
    }

    table {
      margin: 0 auto;
      height: 80px;
      border: 1px solid #000;
      border-collapse: collapse;
      text-align: center;
    }

    tr {
      border: 1px solid #000;
    }

    th {
      border: 1px solid #000;
      padding: 10px 30px
    }

    td {
      border: 1px solid #000;
      padding: 5px 10px
    }
  </style>
</head>

<body>

  <h1>订单付款确认页面</h1>

  <script>
    let goodName = prompt('请输入商品名称')
    let goodPrice = +prompt('请输入商品价格')
    let goodCount = +prompt('请输入商品数量')
    let totalPrice = goodPrice * goodCount
    let address = prompt('请输入您的地址')
    document.write(`
      <table>
        <tr>
          <th>商品名称</th>
          <th>商品价格</th>
          <th>商品数量</th>
          <th>商品总价</th>
          <th>收货地址</th>
        </tr>
        <tr>
          <td>${goodName}</td>
          <td>${goodPrice}元</td>
          <td>${goodCount}</td>
          <td>${totalPrice}元</td>
          <td>${address}</td>
        </tr>
      </table>
    `)
  </script>
</body>

</html>